package com.hualan.sfzyproject.controller.User;
import com.hualan.sfzyproject.service.CompanyInformationService;
import com.hualan.sfzyproject.util.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/companyInformation")
public class CompanyInformationController {
    @Autowired
    private CompanyInformationService companyInformationService;

    @GetMapping
    public R getCompanyInformation(int id){
        System.out.println(id);
        return R.ok(companyInformationService.getCompanyInformation(id));
    }
}